<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<!-- Website template by freewebsitetemplates.com -->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Grade Bay</title>
		<link rel="stylesheet" href="gui.css" type="text/css" />
		<!--[if IE 7]>
			<link rel="stylesheet" href="css/ie7.css" type="text/css" />
		<![endif]-->
	</head>
	<body>
		<div class="page">
			<div class="header">
				<a href="index.php" id="logo"><img src="images/gradeBaylogo.png" width="330" height="79" alt=""/></a>
				<ul>
					<li class="selected"><a href="">ADD TEACHER</a></li>
					<li><a href="index.php">HOME</a></li>
					<li><a href="create.php">BACK</a></li>
				</ul>
			</div>
			<div class="body">
                            <div class="addsubject">
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
    include 'PHPClasses/DBAccess.php';
    include 'PHPClasses/TeacherDBAccess.php';
    include 'PHPClasses/Teacher.php';
    
      if(!isset($_GET['error'])){
         $_GET['error']=0;
     }
    
     if ($_GET['error']){ //If any errors display them  
               
           $errormsg = $_GET['error'] . ".<br>";
           echo "<p style='color:red;'>$errormsg</p>";
           
     }
     
     
     
?>
					 <form action="addTeacherDB.php" method="post">
                                            <p>Name of Teacher:</p><input class='tf_effect' style="padding:0;" type="text" name="teachName" /><br/><br/>
                                                 <p><input type='checkbox' type='text' name='level[]' value='None'/> None
                                                    <input type='checkbox' type='text' name='level[]' value='Grade 1'/> Grade 1
                                                    <input type='checkbox' type='text' name='level[]' value='Grade 2'/> Grade 2
                                                    <input type='checkbox' type='text' name='level[]' value='Grade 3'/> Grade 3
                                                    <input type='checkbox' type='text' name='level[]' value='Grade 4'/> Grade 4
                                                    <input type='checkbox' type='text' name='level[]' value='Grade 5'/> Grade 5
                                                    <input type='checkbox' type='text' name='level[]' value='Grade 6'/> Grade 6<br/>
                                                    <input type='checkbox' type='text' name='level[]' value='1st Year'/> 1st Year
                                                    <input type='checkbox' type='text' name='level[]' value='2nd Year'/> 2nd Year
                                                    <input type='checkbox' type='text' name='level[]' value='3rd Year'/> 3rd Year
                                                    <input type='checkbox' type='text' name='level[]' value='4th Year'/> 4th Year<br/><br/>
                                                 </p>
                                            <input type="hidden" name="submitted" value="1">                     
                                           <center> <input type="submit" id="addTeacher" class="addmore" value="Add Teacher" name="addTeacher"/></center><br/>
                                         </form>
				
                            </div>
			</div>
			<div class="footer">
				
				<p>&#169; Copyright &#169; 2011. Company name all rights reserved</p>
				<div class="connect">
					<a href=""><img src="images/paragox.png" width=160" height="110" alt=""/></a>
					<a href=""><img src="images/fblogo.png" width=120" height="100" alt="" style="position:relative; left:-31px"/></a>
					<a href=""><img src="images/harmony.png" width=120" height="100" alt="" style="position:relative; left:0px"/></a>
				</div>
			</div>
		</div>
	</body>
</html>  